package guestbook;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.users.User;

/**
* <td:traffic_data xsi:schemaLocation="http://www.5t.torino.it/simone/ns/traffic_data http://www.5t.torino.it/simone/ns/traffic_data.xsd" datatype="misura" 
* generation_time="2011-03-24T10:22:17+01:00" start_time="2011-03-24T10:17:17+01:00" end_time="2011-03-24T10:22:17+01:00" source="5T.PARK">
* <td:location_reference>
* <td:tmc_info tabcd="1" cid="25"/>
* </td:location_reference>
* <td:PK_data Name="ARBARELLO" ID="1" status="1" Total="134" lat="45.07243" lng="7.67480"/>
* <td:PK_data Name="BACIGALUPO" ID="46" status="1" Total="305" Free="40" tendence="-1" lat="45.03660" lng="7.67249"/>
* <td:PK_data Name="BIXIO" ID="47" status="1" Total="273" lat="45.06772" lng="7.65686"/>
* <td:PK_data Name="BODONI" ID="2" status="1" Total="434" Free="214" tendence="-1" lat="45.06355" lng="7.68357"/>
*/

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class PK_data {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private String name;

	@Persistent
	private Integer status;

	@Persistent
	private Integer total;

	@Persistent
	private Double lat;

	@Persistent
	private Double lng;

	@Persistent
	private Integer free;

	@Persistent
	private Integer tendence;

	@Persistent
	private Date date;

	public PK_data(
			Long id, String name, Integer status,
			Integer total, Double lat, Double lng,
			Integer free, Integer tendence, Date date
			) {
			this.id = id;
			this.name = name;
			this.status = status;
			this.total = total;
			this.lat = lat; 
			this.lng = lng;
			this.free = free; 
			this.tendence = tendence; 
			this.date = date;
	}

	public Long id() {
	return id;
	}

	public void set_id(Long id) {
	this.id = id;
	}

	public String get_name() {
	return name;
	}

	public void set_name(String name) {
	this.name = name;
	}

	public Integer get_status() {
	return status;
	}

	public void set_status(Integer status) {
	this.status = status;
	}

	public Integer get_total() {
	return total;
	}

	public void set_total(Integer total) {
	this.total = total;
	}

	public Double get_lat() {
	return lat;
	}

	public void set_lat(Double lat) {
	this.lat = lat;
	}

	public Double get_lng() {
	return lng;
	}

	public void set_lng(Double lng) {
	this.lng = lng;
	}

	public Integer get_free() {
	return free;
	}

	public void set_free(Integer free) {
	this.free = free;
	}

	public Integer get_tendence() {
	return tendence;
	}

	public void set_tendence(Integer tendence) {
	this.tendence = tendence;
	}

	public void set_date(Date date) {
	this.date = date;
	}

	public Date get_date() {
	return date;
	}
}
